package entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "GENRE")
public class Genre implements java.io.Serializable
{
	private static final long serialVersionUID = -5007227019521363439L;
	
	private int id;
	private String naam;
	
	// Genre
	
	/**
	 * Constructor voor Hibernate
	 */
	@SuppressWarnings("unused")
	private Genre()
	{
		
	}
	public Genre(String naam)
	{
		this.naam = naam;
	}
	
	// Getters en Setters
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	@Column(name = "naam", unique = true)
	public String getNaam()
	{
		return naam;
	}
	public void setNaam(String naam)
	{
		this.naam = naam;
	}
	
	// Methoden
}
